package com.xbjtech.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.xbjtech.model.MobileYzm;

public interface MobileYzmMapper {

	/**
	 * 
	 */
	@Insert("insert into t_mobile_yzm value(null,#{mobile},#{code},#{createTime})")
	public void insertMobileYzm(MobileYzm my);
	
	@Select("select id,mobile,code,create_time createTime from t_mobile_yzm where mobile=#{mobile} order by id desc limit 1")
	public MobileYzm findLastYzmByMobile(@Param("mobile") String mobile);
	
	
}
